package com.erhirent.dao;

import java.util.List;

import com.erhirent.bean.Brand;
import com.erhirent.bean.Car;
import com.erhirent.bean.Record;
import com.erhirent.bean.Type;

public interface IcarDao {

	public void queryDesc();

	public void queryAsc();

	public List<Type> querytype();

	public List<Car> typequery(int n);

	public List<Brand> querybrand();

	public List<Car> brandquery(int m);

	public List<Car> userquery();

	public boolean userqueryRent(int a);

	public boolean userRecord(int carID, int userID, double pri, int day);

	public List<Car> userqueryRecord(int userID);

	public double getCarPrice(int a);

	public void manergerquery(int j);

	public List<Car> queryAll();

	public boolean addCar(String name, String remark, int brand, int type, double payday, String car_number,
			String color, double value);

	public List<Car> queryChange();

	public List<Car> queryChange(int num);

	public boolean changeCarPrice(double pri, int num);

	public boolean changeCarputaway(String putaway, int num);

	public List<Record> manegerqueryRecord();

	public boolean clearBook(int y);

	public boolean carBook(int x);

	public List<Car> userqueryPutaway();

	public boolean userqueryOrder(int x);

	public List<Car> userqueryoneRecord(int userID);

	public boolean isreturn(int carID, int userID);

	public boolean deleterecord(int carID);

}
